//
//  main.m
//  test222
//
//  Created by dllo on 16/5/11.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    int a[3] = {3, 2, 1};
    for (int i = 0; i < 2 ; i++) {
        for (int j = 0; j < 2 - i; j++) {
            if (a[j] > a[j + 1 ]) {
                int temp = a[j];
                a[j] = a[j + 1];
                a[j + 1] = temp;
            }
        }
    }
    
    
    
    return 0;
}
